package com.gitee.wsl.transform.encode.pinyin.interval

interface Intervalable : Comparable<Intervalable> {
    val start: Int

    val end: Int

    val size:Int


    override fun compareTo(other: Intervalable): Int {
        val comparison: Int = this.start - other.start
        return if (comparison != 0) comparison else this.end - other.end
    }
}